Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Logs and View Logs Functionality Added #168

Merged
merged 13 commits into from
Nov 13, 2024
Merged

Conversation

namithj
Copy link
Contributor

@namithj namithj commented Nov 8, 2024

Pull Request

What changed?

Clear Logs and View Logs Functionality Added

Why did it change?

Make debugging easier and provide an easier way for casual users to see whats going on

Did you fix any specific issues?

#62

CERTIFICATION

By opening this pull request, I do agree to abide by the CODE OF CONDUCT and be bound by the terms of the Contribution Guidelines in effect on the date and time of my contribution as proven by the revision information in GitHub. I also agree that any previous contributions shall be deemed subject to the terms of the ersion in effect on the date and time of this pull request, or any future revisions for pull requests I may submit.

Further, I certify that this work is my own, is original, does not violate the intellectual property of any other person or entity, and I am not violating any license agreements or contracts I have with any person or entity. Finally, I agree that this code may be licensed under any license deemed appropriate by AspirePress, including but not limited to open source, closed source, proprietary or custom licenses, and that such license terms neither violate my rights or my copyright to this code.

Backup
Backup
Clear and View Logs
@namithj namithj requested a review from a team November 8, 2024 19:42
@namithj namithj changed the title #62 Clear Logs and View Logs Functionality Added Nov 8, 2024
includes/class-debug.php Outdated Show resolved Hide resolved
includes/class-debug.php Outdated Show resolved Hide resolved
includes/class-debug.php Outdated Show resolved Hide resolved
Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @namithj! I've left some change request and a couple of suggestions. 🙂

@namithj
Copy link
Contributor Author

namithj commented Nov 8, 2024

Thanks, will update. I got another issue in this PR which I haven't been able to figure out. I am getting an extra line break between each log entries in the viewer and not in the log file. Can you take a look.

includes/class-debug.php Outdated Show resolved Hide resolved
@namithj namithj requested a review from costdev November 9, 2024 02:18
Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @namithj!

I've left some requested changes for indent fixing or missing return value, as well as some thoughts about possible improvements for the ::read() method.

includes/class-debug.php Outdated Show resolved Hide resolved
includes/class-debug.php Outdated Show resolved Hide resolved
includes/class-debug.php Outdated Show resolved Hide resolved
includes/class-debug.php Show resolved Hide resolved
@asirota asirota requested a review from costdev November 11, 2024 22:54
@asirota asirota self-assigned this Nov 11, 2024
@asirota asirota added the enhancement New feature or request label Nov 11, 2024
@asirota asirota modified the milestones: 0.5, Phase 1 Nov 11, 2024
@asirota asirota linked an issue Nov 11, 2024 that may be closed by this pull request
Use WP_Error Class for returning error conditions.
@namithj
Copy link
Contributor Author

namithj commented Nov 12, 2024

Lets get this merged

@asirota
Copy link
Member

asirota commented Nov 12, 2024

Lets get this merged

Have you addressed @costdev suggestions?

@namithj
Copy link
Contributor Author

namithj commented Nov 12, 2024

Yes, everything resolved

includes/class-controller.php Outdated Show resolved Hide resolved
Errors are shown in alert boxes instead of inside the viewer.

New error states added for clear logs.
@namithj
Copy link
Contributor Author

namithj commented Nov 13, 2024

@costdev PR Updated. Added more error handling too.

includes/class-debug.php Outdated Show resolved Hide resolved
Redundant check removed
@asirota asirota merged commit 79b36a3 into aspirepress:main Nov 13, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add button to clear logs
3 participants